package o;

import com.huawei.appgallery.agwebview.controlmore.db.WapControlMore;
import com.huawei.appgallery.agwebview.whitelist.bean.DomainWhiteListResponse.ControlMore;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.KeyAndValue;
import java.util.List;

public class bai {
    public void ˏ(List<ControlMore> list, String str) {
        try {
            euc.ˊ().ॱ();
            bak.ˊ().ˋ(list);
            if (!dof.ˋ(str)) {
                bbb.ˊ(str);
            }
            euc.ˊ().ˏ();
        } catch (Throwable e) {
            azh.ˏ.ˊ("WapControlMoreManager", "save controlmore error", e);
        }
    }

    public String ˋ() {
        return bbb.ˏ();
    }

    public bal ॱ(String str) {
        bal o_bal;
        Throwable th;
        bal o_bal2 = null;
        if (!dof.ˋ(str)) {
            try {
                euc.ˊ().ॱ();
                WapControlMore ˏ = bak.ˊ().ˏ(str);
                euc.ˊ().ˏ();
                if (ˏ != null) {
                    o_bal = new bal();
                    try {
                        o_bal.ˊ(ˏ.ˊ());
                        o_bal.ॱ(ˏ.ˏ());
                    } catch (Throwable e) {
                        Throwable th2 = e;
                        o_bal2 = o_bal;
                        th = th2;
                        azh.ˏ.ˊ("WapControlMoreManager", "query controlmore error", th);
                        o_bal = o_bal2;
                        if (o_bal == null) {
                            o_bal = ˊ();
                        }
                        o_bal.ˎ(str);
                        return o_bal;
                    }
                    if (o_bal == null) {
                        o_bal = ˊ();
                    }
                    o_bal.ˎ(str);
                    return o_bal;
                }
            } catch (Exception e2) {
                th = e2;
                azh.ˏ.ˊ("WapControlMoreManager", "query controlmore error", th);
                o_bal = o_bal2;
                if (o_bal == null) {
                    o_bal = ˊ();
                }
                o_bal.ˎ(str);
                return o_bal;
            }
        }
        o_bal = null;
        if (o_bal == null) {
            o_bal = ˊ();
        }
        o_bal.ˎ(str);
        return o_bal;
    }

    private bal ˊ() {
        bal o_bal = new bal();
        o_bal.ˊ(KeyAndValue.NUMBER_01);
        o_bal.ॱ("00");
        return o_bal;
    }
}
